package com.aijle.videopaper.receiver;

import android.app.usage.UsageStats;
import android.app.usage.UsageStatsManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.provider.Settings;
import android.util.Log;

import com.aijle.videopaper.util.IOverlay;
import com.aijle.videopaper.util.PermissionCheck;

import java.util.List;
import java.util.SortedMap;
import java.util.TreeMap;

public class LaunchReceiver extends BroadcastReceiver {
    public static final String TAG = "LaunchReceiver";

    @Override
    public void onReceive(Context context, Intent intent) {
        IOverlay service = (IOverlay) context;
        String topPackageName = PermissionCheck.getForegroundProcess(context);

        Log.d(TAG, topPackageName);
    }
}
